#pragma once

#include <cemapi.h>
#include <mapiutil.h>

class CMapiSms
{
public:
    CMapiSms(void);
    ~CMapiSms(void);

    HRESULT SetRecepientCount(UINT Count);
    HRESULT AddRecepient(CString &Name, CString &Number);
    void ClearRecepients(void);
    HRESULT Send(CString &Message, bool DeliveryNotification = false);

private:
    HRESULT
    MapiSend(
        IMAPISession *pSession,
        CString &Message,
        bool DeliveryNotification);

private:
    UINT m_Count;
    ADRLIST *m_pAdrList;

    static const int MAX_MESSAGE;
};
